import _ from 'lodash'
import dayjs from 'dayjs'

import './bar_01'
import './bar_02'

console.log("main.js");
console.log(_.join(['Hello', 'Main']))
console.log(dayjs(), 'main')

// 异步导入的代码，webpack都会进行代码分离
// magic comments
import(/* webpackChunkName: "foo" */'./foo').then(res => {
  console.log(res)
}).catch(err => {
  console.log(err)
})